<?php
/* @var $this ColorsController */
/* @var $data Colors */
/* @var $form CActiveForm */
?>
    <?php $form=$this->beginWidget('CActiveForm', array(
        'id'=>'colors-form',
        'enableAjaxValidation'=>false,
    )); ?>

    <b><?php echo CHtml::encode($data->getAttributeLabel('id')); ?>:</b>
    <?php echo CHtml::link(CHtml::encode($data->id), array('view', 'id'=>$data->id)); ?>
    <br />

    <?php echo $form->labelEx($data,'color'); ?>
    <?php echo $form->textField($data,'color',array('size'=>28,'maxlength'=>28)); ?>
    <?php echo $form->error($data,'color'); ?>

    <div class="row">
        <?php echo $form->labelEx($data,'r'); ?>
        <?php echo $form->textField($data,'r'); ?>
        <?php echo $form->error($data,'r'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($data,'g'); ?>
        <?php echo $form->textField($data,'g'); ?>
        <?php echo $form->error($data,'g'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($data,'b'); ?>
        <?php echo $form->textField($data,'b'); ?>
        <?php echo $form->error($data,'b'); ?>
    </div>

    <?php $this->endWidget(); ?>